package com.weng.bigdata.core.mq.model;

import lombok.Data;

import java.util.Date;

/**
* 采集任务状态
* @author wengzhonghui
* @date: 2021-07-03 22:29:14
*/
@Data
public class MqTaskStatus {

    /**
     * 任务配置Id
     */
    private String taskId;

    private String taskName;

    /**
     * 对应当前运行调度任务
     */
    private String scheduleJobId;

    /**
     * 任务状态，见：TaskStatusEnum.java
     */
    private Integer status;

    private String errorMessage;

    /**
     * 任务状态变更时间
     */
    private Date dateTime;

    public MqTaskStatus() {
    }

    public MqTaskStatus(String taskId, String taskName, Integer status
            , String errorMessage) {
        this.taskId = taskId;
        this.taskName = taskName;
        this.status = status;
        this.errorMessage = errorMessage;
    }

    public MqTaskStatus(String taskId, String taskName, Integer status, String errorMessage, Date dateTime) {
        this.taskId = taskId;
        this.taskName = taskName;
        this.status = status;
        this.errorMessage = errorMessage;
        this.dateTime = dateTime;
    }

    public MqTaskStatus(String taskId, String taskName, String scheduleJobId, Integer status, String errorMessage, Date dateTime) {
        this.taskId = taskId;
        this.taskName = taskName;
        this.scheduleJobId = scheduleJobId;
        this.status = status;
        this.errorMessage = errorMessage;
        this.dateTime = dateTime;
    }
}